package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ToString
@ApiModel("")
@Table(name = "tb_resource_menu")
public class TbResourceMenu {
    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotNull(message="不能为空")
    @Id
    @Column(name = "resource_id")
    private Integer resourceId;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotEmpty(message="不能为空")
    @Id
    @Column(name = "menu_id")
    private String menuId;

    /**
     * @return resource_id
     */
    public Integer getResourceId() {
        return resourceId;
    }

    /**
     * @param resourceId
     */
    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    /**
     * @return menu_id
     */
    public String getMenuId() {
        return menuId;
    }

    /**
     * @param menuId
     */
    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }
}